import request from '@/utils/request'

// 创建MCU租户配置
export function createMcuTenantResource(data) {
  return request({
    url: '/hardware/mcu-tenant-resource/create',
    method: 'post',
    data: data
  })
}

// 更新MCU租户配置
export function updateMcuTenantResource(data) {
  return request({
    url: '/hardware/mcu-tenant-resource/update',
    method: 'put',
    data: data
  })
}

// 删除MCU租户配置
export function deleteMcuTenantResource(id) {
  return request({
    url: '/hardware/mcu-tenant-resource/delete?id=' + id,
    method: 'delete'
  })
}

// 获得MCU租户配置
export function getMcuTenantResource(id) {
  return request({
    url: '/hardware/mcu-tenant-resource/get?id=' + id,
    method: 'get'
  })
}

// 获得MCU租户配置列表
export function getMcuTenantResourceList(query) {
  return request({
    url: '/hardware/mcu-tenant-resource/list',
    method: 'get',
    params: query
  })
}

// 获得MCU租户配置分页
export function getMcuTenantResourcePage(query) {
  return request({
    url: '/hardware/mcu-tenant-resource/page',
    method: 'get',
    params: query
  })
}

// 导出MCU租户配置 Excel
export function exportMcuTenantResourceExcel(query) {
  return request({
    url: '/hardware/mcu-tenant-resource/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
